package io.persimmon.core.module.lock.constant;

import io.persimmon.core.entity.base.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum UnLockResult implements BaseEnum {

    SUCCESS("成功"),
    LOCK_NOT_EXIST("锁不存在"),
    LOCK_NOT_CURRENT_THREAD("锁不是当前线程持有");

    private String desc;

    public boolean isSuccess() {
        return this == SUCCESS;
    }
}
